let purchaseOrderId = args.purchaseOrderId;
const rows = lib.dbQueryJsonArray(
	`SELECT
		sku AS sku,
		product_id AS productId,
		pic_url AS productImg,
		sid AS shopId,
		application_num AS purchaseNum
	FROM
		purchase_order_product 
	WHERE
		purchase_order_id = ?`,purchaseOrderId);
for(const row of rows) {
	if (typeof row.productImg === 'string') {
		row.productImg = JSON.parse(row.productImg);
		
	}
}
rows